#include "../Driver/IIC/i2c.h"
#include "../Driver/EXIT/exit.h"
#include "debug.h"

int main(void)
{
    static uint8_t temp;
    uint8_t temp;

    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    Delay_Init();
    USART_Printf_Init(115200);
    printf("SystemClk:%d\r\n", SystemCoreClock);

    I2cInit(100000, 0xA0);
    ExitInit();

    temp = ReadOneByte(0x00);
    temp++;
    WriteOneByte(0x00, temp);
    printf("This is the %d th of boot\r\n",temp);

    while(1) {
        // do nothing
    }
}
